iT邦幫忙

2021 iThome 鐵人賽

DAY 29
0
IT管理

Odoo模組開發實務分享系列 第 29

Day 29 如何調整 Odoo configuration 參數?

  • 分享至 

  • xImage
  •  

參考文章 [How to Speed up Odoo]

--workers=WORKERS Specify the number of workers, 0 disable prefork mode.
--limit-memory-soft=LIMIT_MEMORY_SOFT
Maximum allowed virtual memory per worker, when
reached the worker be reset after the current request
(default 671088640 aka 640MB).
--limit-memory-hard=LIMIT_MEMORY_HARD
Maximum allowed virtual memory per worker, when
reached, any memory allocation will fail (default
805306368 aka 768MB).
--limit-time-cpu=LIMIT_TIME_CPU
Maximum allowed CPU time per request (default 60).
--limit-time-real=LIMIT_TIME_REAL
Maximum allowed Real time per request (default 120).
--limit-request=LIMIT_REQUEST
Maximum number of request to be processed per worker
(default 8192).

筆者自己的環境是4CPU + 16RAM

workers = 9
limit_memory_hard = 7247757312
limit_memory_soft = 6039797760
limit_request = 8192
limit_time_cpu = 3000
limit_time_real = 3000

workers = (CPU核心數*2) + 1
limit_memory_soft = 640 * CPU核心數 * 1024 * 1024
limit_memory_hard = 768 * CPU核心數 * 1024 * 1024


上一篇
Day 28 維護 PostgreSQL 資料庫的參數?
下一篇
Day 30 讓 Tree View 變成彩虹吧~!
系列文
Odoo模組開發實務分享30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言